#ifndef SENDER_H
#define SENDER_H
#include <iostream>
#include <string>
#include <fstream>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <vector>
#include "../file.h"
#include <algorithm>
#include "../MySocket.h"
#include "../SocketException.h"
#include "dirent.h"
#include <sstream>
#include "../TransferedData.h"
#include "descwindow.h"
#include <QFile>
#include <QDataStream>


#define BUFFER_SIZE (1024)
using namespace std;

class Sender : public QObject
{
    Q_OBJECT
public:
    Sender(MySocket &sock,string,string);
private:
    string filename;
    MySocket clientSocket;
    string dir;
public slots:
    void send();

};

#endif // SENDER_H
